package com.fourinone.base;

/**
 * @Description
 * @auther Szper
 * @create 2019-10-15 09:02
 */
public class ArrayAdapter {
    private int initLength = 0x40; //默认64
    Object[] objectArr;
    int objectIndex = 0;
    ArrayAdapter() {
        objectArr = new Object[initLength];
    }
    public interface ListInt extends BaseSerializable {
        public void add (int i);
        public void add (int[] initArr);
        public int size();
        public void set(int index, int i);
        public int get(int index);
        public void sort();
        public int[] sort(int[] arr);
        public int[] toArray();
        public void order(int[] arr);
    }

    /**
     * 扩容
     */
    public void auto() {
        if (objectIndex == objectArr.length) {
            Object[] objectNewArr = new Object[objectArr.length + initLength];
        }
    }
}
